package com.cti.ftpservice.job;

import java.util.Date;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

import com.cti.ftpservice.service.FtpService;

@Component("ftpUpLoadJob")
public class FtpUpLoadJob {

private static Log log = LogFactory.getLog(FtpUpLoadJob.class);
	
	@Resource
	private FtpService ftpService;
	
	public void  doWork() {
		log.info("上传文件到Ftp服务器开始"+new Date().toString());
		ftpService.uploadFilesToFtpServices();
		log.info("上传文件到Ftp服务器开始完成"+new Date().toString());
	}
}
